import java.util.ArrayList;

public class User {

	private String name;

	private boolean isOnline=false;
	private ArrayList<String> messages;
	
	
	public User(String name){
		this.name=name;
		messages = new ArrayList<String>();
	}
	
	
	public String getName(){
		return this.name;
	}
		
	public boolean isOnline(){
		return isOnline;
	}
	
	public void setOnline(){
		isOnline=true;
	}
	
	public void setOffline(){
		isOnline=false;
	}
	
	public void addMessage(String message){
		messages.add(message);
	}
	
	public ArrayList<String> getMessages(){
		return messages;
	}
}
